package be.bonamis.umpire.utils.web;


import org.springframework.context.ApplicationContextInitializer;
import org.springframework.context.ConfigurableApplicationContext;



public class SpringApplicationContextInitializer implements ApplicationContextInitializer<ConfigurableApplicationContext> {
	@Override
	public void initialize(ConfigurableApplicationContext applicationContext) {
		String profile = "default";
        applicationContext.getEnvironment().setActiveProfiles(profile);

//        Class<?>[] configs = {UmpireConfig.class};
//
//        String[] basePkgs = new String[configs.length];
//        int i = 0;
//        for (Class<?> pkg : configs)
//            basePkgs[i++] = pkg.getPackage().getName();
//
//        //applicationContext.scan(basePkgs);
//        applicationContext.refresh();
		
	}
}